import request from '@/utils/request'

// 查询销售状态列表
export function listSalestate(query) {
  return request({
    url: '/house_sale/salestate/list',
    method: 'get',
    params: query
  })
}

// 查询销售状态详细
export function getSalestate(saleid) {
  return request({
    url: '/house_sale/salestate/' + saleid,
    method: 'get'
  })
}

// 新增销售状态
export function addSalestate(data) {
  return request({
    url: '/house_sale/salestate',
    method: 'post',
    data: data
  })
}

// 修改销售状态
export function updateSalestate(data) {
  return request({
    url: '/house_sale/salestate',
    method: 'put',
    data: data
  })
}

// 删除销售状态
export function delSalestate(saleid) {
  return request({
    url: '/house_sale/salestate/' + saleid,
    method: 'delete'
  })
}
